#if !defined(AFX_TESTDATAEDITDLG_H__1CB3F881_E08B_473B_931C_20224CCCA6ED__INCLUDED_)
#define AFX_TESTDATAEDITDLG_H__1CB3F881_E08B_473B_931C_20224CCCA6ED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TestDataEditDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTestDataEditDlg dialog
#ifndef __VECTOR_
#define __VECTOR_
#include <vector>
#endif


typedef struct _TestData
{
	// 	_TestData()
	// 	{
	// 		ZeroMemory(szFileName, 256);
	// 		ZeroMemory(szVerInfo, 100);
	// 	}
	//TCHAR szFileName[256];
	//TCHAR szVerInfo[100];
	CString strFileName;
	CString strVerInfo;
}TESTDATA, *PTESTDATA;

class CTestDataEditDlg : public CDialog
{
// Construction
public:
	CTestDataEditDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTestDataEditDlg)
	enum { IDD = IDD_DLG_EDITTESTDATA };
	CListCtrl	m_listTestData;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDataEditDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	std::vector<TESTDATA> m_vTestData;
	void UpdateListCtrl();
	void OpenTestDataFile(CString str_filenamr);
	CString GetVersionFromPath(CString IDEPath);

	// Generated message map functions
	//{{AFX_MSG(CTestDataEditDlg)
	afx_msg void OnBtnNew();
	virtual BOOL OnInitDialog();
	afx_msg void OnDblclkListTestdata(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnSavetofile();
	afx_msg void OnBtnOpentestfile();
	afx_msg void OnBtnStarttest();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTDATAEDITDLG_H__1CB3F881_E08B_473B_931C_20224CCCA6ED__INCLUDED_)
